<!doctype html> 
<html> 
<head> 
  <meta charset="utf-8"/>
  <title>后台管理系统</title>
  <meta name="author" content="DeathGhost" />
  <link rel="stylesheet" type="text/css" href="css/style.css" />
  <!--[if lt IE 9]>
  <script src="js/html5.js"></script>
  <![endif]-->
  <style>
.ulColumn2  li{ float: left; margin-left: 20px;}
  </style>

<script src="js/jquery.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>
	(function($){
		$(window).load(function(){
			
			$("a[rel='load-content']").click(function(e){
				e.preventDefault();
				var url=$(this).attr("href");
				$.get(url,function(data){
					$(".content .mCSB_container").append(data); //load new content inside .mCSB_container
					//scroll-to appended content 
					$(".content").mCustomScrollbar("scrollTo","h2:last");
				});
			});
			
			$(".content").delegate("a[href='top']","click",function(e){
				e.preventDefault();
				$(".content").mCustomScrollbar("scrollTo",$(this).attr("href"));
			});
			
		});
	})(jQuery);
</script>

</head>
<body>
	<section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content">
     
    


     <section>
      <h2><strong style="color:grey;">环境图片</strong></h2>
      <ul class="ulColumn2">
      @foreach($list as $v)
       <li>
          <img src="imges/{{$v->img_path}}" alt="" style="width:200px;height:200px;">
       </li>
      @endforeach
       
       <li>
       <form action="enterpriseImg" method="post" enctype="multipart/form-data">
        <label class="uploadImg">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
         <input type="file" id="upfile" name="file" />
         <span>上传图片</span>
        </label>
       </form>
       </li>
      </ul>
     </section>
     <!--tabStyle-->


 </div>
</section>
</body>
<script type="text/javascript">
$('#upfile').change(function(){
  $('form').submit();
})
</script>
</html>


